#ifndef ROUTINGINDEX_HPP
#define ROUTINGINDEX_HPP
#include <vector>
#include <string>
#include <map>
class RoutingIndex
{
public:
    RoutingIndex();
    std::vector <std::string> getSubscriber(std::string key);
    std::vector <std::string> getPublisher(std::string key);
    void addSubscriber(std::string key, std::string name);
    void addPublisher(std::string key, std::string name);
    void clear();
private:
    std::multimap <std::string, std::string> publisher_;
    std::multimap <std::string, std::string> subscriber_;
};

#endif // ROUTINGINDEX_HPP
